# DATE_FORMATS  = { 
#   :db           => "%Y-%m-%d %H:%M:%S", 
#   :number       => "%Y%m%d%H%M%S", 
#   :time         => "%H:%M", 
#   :short        => "%d %b %H:%M", 
#   :long         => "%B %d, %Y %H:%M", 
#   :long_ordinal => lambda { |time| time.strftime("%B #{ActiveSupport::Inflector.ordinalize(time.day)}, %Y %H:%M") }, 
#   :rfc822       => lambda { |time| time.strftime("%a, %d %b %Y %H:%M:%S #{time.formatted_offset(false)}") 
# }

# time = Time.now                # => Wed May 02 01:00:00 0800 2009
# time.to_formatted_s(:cn_date)  # => "2009年05月20日"
# time.to_s(:cn_time)            # => "2009年05月20日 01时:00分:00秒"
Time::DATE_FORMATS[:cn_date] = "%Y年%m月%d日"
Time::DATE_FORMATS[:cn_time] = "%a %Y年%m月%d日 %H:%M:%S"
